package de.fzi.kasma.learner.function.kernel.rdf;

import java.util.Set;

public class Partition {
	public KernelCache m_kc;
	public static int m_partitionId = 0;

	private static int m_id = ++m_partitionId;

	public Partition(KernelCache kc) throws Exception {
		m_kc = kc;

	}

	public void removeColor(Color color) {
		m_kc.removeColor(this, color);
	}

	public Color addColor(String c) {
		Color color = m_kc.createColor();
		color.setColor(c);
		return color;
	}

	public Color getColor(Integer id) {
		return m_kc.getColor(id);
	}

	public Set<Color> getColors(Integer element) {
		return m_kc.getColors(element);
	}

	public int getId() {
		return m_id;
	}

}
